/** 
 *  @file       at24c02.h
 *  @brief      at24c02的eeprom
 *  @author     Z B T  
 *  @version    
 *  @date       2016-01 
 */

#ifndef __AT24C02_H
#define __AT24C02_H

/* Includes ------------------------------------------------------------------*/
#include "config.h"

/* Private typedef -----------------------------------------------------------*/

/* Private define ------------------------------------------------------------*/
#define read_addr		0xa1
#define write_addr		0xa0

/* Public functions prototypes ---------------------------------------------------------*/
void AT24C02_write(unsigned char addr, unsigned char dat);
unsigned char AT24C02_read(unsigned char addr);

#endif
